package com.xiaowei.gym.gymjsp.ware.service;

import com.xiaowei.gym.gymjsp.ware.dto.AdminDTO;
import com.xiaowei.gym.gymjsp.ware.entity.AdminEntity;
import com.xiaowei.gym.gymjsp.ware.vo.AdminVo;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface AdminService extends ImportService<AdminDTO, Integer>{

    int createAdmin(AdminEntity adminEntity);

    AdminEntity getAdminById(Integer id);

    AdminEntity getAdminByAdminname(String username) throws SQLException;

    boolean verifyPassword(AdminEntity adminEntity, String password) throws NoSuchAlgorithmException;

    int getAdminCount();

    AdminEntity validate(String username, String password);

    List<AdminEntity> getAdminList(String queryUserName, int currentPageNo, int pageSize);

    boolean deleteAdminByIds(Integer[] delId);

    boolean modify(AdminEntity adminEntity);

    Map<String, Object> validAdmin(AdminDTO adminDTO);

    List<AdminVo> exportExcel(HttpServletResponse response) throws IOException;
}


